/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.telsoft.security.business;

import com.telsoft.security.data.SEC_DATA_GROUP_RIGHT;
import com.telsoft.security.entity.SEC_ETT_Right;
import java.util.List;

/**
 *
 * @author nguyenthang
 */
public class SEC_BU_GROUP_RIGHT {
    public static List<SEC_ETT_Right> getAllRightByGroupID(int GROUP_ID){
        SEC_DATA_GROUP_RIGHT DA = new SEC_DATA_GROUP_RIGHT();
        return DA.getAllRightByGroupID(GROUP_ID);
    }
    public static void deleteGRByID(int groupID){
        SEC_DATA_GROUP_RIGHT DA = new SEC_DATA_GROUP_RIGHT();
        DA.deleteGRByID(groupID);
    }
    public static void addGroupGright(int rightID, int GroupID){
        SEC_DATA_GROUP_RIGHT DA = new SEC_DATA_GROUP_RIGHT();
        DA.addGroupRight(GroupID, rightID);
    }
}
